package com.ctshk.rpc.user.req;

import com.ctshk.common.enums.IsDeletedCode;
import com.ctshk.common.model.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  订单REQ
 * </p>
 *
 * @author 李新科
 * @date 2021/5/17 11:35
 */
@Data
@Accessors(chain = true)
@ApiModel(value="OrderPageReq对象", description="C端订单分页查询req")
public class OrderPageReq extends PageReq implements Serializable {


    @ApiModelProperty(value = "B端用户Id")
    private Long createId;

    @ApiModelProperty(value = "C端用户Id")
    private Long userId;

    @ApiModelProperty(value="小店id")
    private Long shopId;

    @ApiModelProperty(value="类型集合,从SystemBusinessType类取值，1.2旅行团 6.7自由行 8.酒店 9.机票 10.火车票 11.船票 12.巴士票 13.机场快线 14.景点门票 15.当地玩乐 18.商品")
    private List<Integer> typeList;

    @ApiModelProperty(value = "订单筛选状态,取枚举类AppFilterOrderStatus,1待付款，2已付款，3已取消，4已完成，5售后中")
    private Integer filterOrderStatus;

    @ApiModelProperty(value = "订单创建时间类型,1.近,2.远,3.近三个月,4.近半年,5.近一年,6今日,7.昨日,8.近七天,9.近30天,默认查近三个月")
    private Integer gmtCreateType = 3;

    @ApiModelProperty(value="订单编号")
    private String orderNumber;

    @ApiModelProperty(value="订单创建年月")
    private LocalDate yearOfMonth;

    @ApiModelProperty(value = "删除标识",hidden = true)
    private Integer isDeleted;
}
